package com.linwen.javase.desgin_pattern.structure.proxy.dynamic;

import com.linwen.javase.desgin_pattern.structure.proxy.Boss;
import com.linwen.javase.desgin_pattern.structure.proxy.Rent;

/**
 * @ClassName TestDynamic
 * @Description
 * @Author lin
 * @Date 2022/4/13 下午10:38
 * @Version V1.0
 */
public class TestDynamic {
    public static void main(String[] args) {
        DynamicProxy dynamicProxy = new DynamicProxy(new Boss());
        Rent proxyInstance = (Rent) dynamicProxy.getProxyInstance();
        proxyInstance.rent();
        proxyInstance.money();
    }
}
